package PRSystem_Main;




import java.util.Scanner;

import PRSystem_Service.PRSystemAdministratorService;
import PRSystem_Service.PRSystemAdministratorServiceImpl;
import PRSystem_Service.PRSystemAndSoOnService;
import PRSystem_Service.PRSystemAndSoOnServiceImpl;
import PRSystem_Service.PRSystemPerformanceService;
import PRSystem_Service.PRSystemPerformanceServiceImpl;
import PRSystem_Service.PRSystemUserService;
import PRSystem_Service.PRSystemUserServiceImpl;


public class PRSystem {

	public static void main(String[] args) {
		
		PRSystemPerformanceService a  = new PRSystemPerformanceServiceImpl();
		PRSystemUserService b  = new PRSystemUserServiceImpl();
		PRSystemAdministratorService c  = new PRSystemAdministratorServiceImpl();
		PRSystemAndSoOnService d  = new PRSystemAndSoOnServiceImpl();
		

	
		Scanner sc = new Scanner(System.in);
		switch(sc.nextInt()) {
		// 공연 올리는 사람...
			case 1: a.newPerformance(); break; //공연 생성
			case 2: a.readPerformance(); break; //공연 조회
			case 3: a.readOnePerformance(); break; //공연 선택 조회
			case 4: a.modifyPerformance(); break; //공연 수정 
			case 5: a.removePerformance(); break; //공연 삭제		
			
			case 6: b.newUser(); break; //사용자 생성 
			case 7: b.readUser(); break; //사용자 조회
			case 8: b.readOneUser(); break; //사용자 선택 조회
			case 9: b.modifyUser(); break; //사용자 수정
			case 10: b.removeUser(); break; //사용자 삭제
			
			case 11: c.newAdministrator(); break; //관리자 생성 
			case 12: c.readAdministrator(); break; //관리자 조회
			case 13: c.readOneAdministrator(); break; //관리자 선택 조회
			case 14: c.modifyAdministrator(); break; //관리자 수정
			case 15: c.removeAdministrator(); break; //관리자 삭제
			
			case 16: d.LogInMatch(); break; //로그인 일치	
			case 17: d.Discount(); break; //할인
			case 18: d.Payment(); break;  //결재
			case 19: d.FindAPostalCode(); break; //우편번호 찾기 
			case 20: d.MatchingSocialSecurity(); break; // 유효한 주민등록번호 여부
			
			
			case 0: sc.close();System.exit(0); break;
			default : System.out.println("올바르지 않은  선택입니다" );
		}
	} // main
} // class





